<template>
	<view class="first_nav">
		<view class="iconfont iconsousuo icon">

		</view>
		<view class="middle">

			<navigator open-type="switchTab" class="text" url="/pages/index/index">
				推荐
			</navigator>
			<navigator open-type="navigate" class="text" url="/pages/city/city">
				同城
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.first_nav {
		width: 100%;
		position: fixed;
		top: 25px;
		left: 0;
		z-index:20;
		height: 35px;
		line-height: 35px;
		margin: 0 auto;
		background-color: #000000;
		.icon {
			position: absolute;
			top: 0;
			left: 0;
			color: #ffffff;
			width: 20%;
			text-align: center;
			font-size: 20px;
		}
		.middle{
			text-align: center;
			.text{
				display: inline;
				color: #ffffff;
				margin: 0 10px;
			}
		}
	}
</style>
